package com.yoomiito.app.model.my;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/************************************************************
 * Author:  linqiang
 * Description:     // 模块描述
 * Date: 2019/4/26
 ************************************************************/
public class MyUserCenterInfo implements Parcelable {

    /**
     * account : 0
     * inviteNum : 0
     * userInfo : {"nickname":"Qq","headimgurl":"http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIo5OJEQUTWcGXGtHDGhb10cgqBQ4hS88PU50tFG7zn3ryiafE9ib3Qs3GeTLdarFy7t9FLGmkevpsQ/132","invitation_code":"169149","isVip":0}
     * todayIncome : 0
     * thisMonthEstimate : ["4月25日",0]
     * nextMonthEstimate : ["5月25日",0]
     * vipAccount : 0
     * historyTotalIncome : 0
     */

    private String account;
    private int inviteNum;
    private String coin;
    private UserInfoBean userInfo;
    private String todayIncome;
    private String vipAccount;
    private String historyTotalIncome;
    private ArrayList<String> thisMonthEstimate;
    private ArrayList<String> nextMonthEstimate;
    private String teamAccount;//管理津贴
    private String sendMoreIncome;//送多多收益字段
    private String deductionAccount;//可抵扣余额
    private ArrayList<String> taobaoPendingIncome;//预计结算
    private ArrayList<String> jdPendingIncome;//京东结算
    private String creditCardAccount;
    private String businessCollege;
    private String angelPlan;
    private String sendMore;
    private String ymFinance;
    private String ymLive;
    private String oilCard;
    private String starStore;

    public String totalMoney;
    public String mugwordMoney;
    public String money;
    public String cloudNum;
    public String entityNum;
    public String setBox;
    public int realName;
    public int agent;
    public int roleId;
    public int param2;
    public String getDeductionAccount() {
        return deductionAccount;
    }

    public void setDeductionAccount(String deductionAccount) {
        this.deductionAccount = deductionAccount;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public int getInviteNum() {
        return inviteNum;
    }

    public void setInviteNum(int inviteNum) {
        this.inviteNum = inviteNum;
    }

    public UserInfoBean getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfoBean userInfo) {
        this.userInfo = userInfo;
    }

    public String getTodayIncome() {
        return todayIncome;
    }

    public void setTodayIncome(String todayIncome) {
        this.todayIncome = todayIncome;
    }

    public String getVipAccount() {
        return vipAccount;
    }

    public void setVipAccount(String vipAccount) {
        this.vipAccount = vipAccount;
    }

    public String getHistoryTotalIncome() {
        return historyTotalIncome;
    }

    public void setHistoryTotalIncome(String historyTotalIncome) {
        this.historyTotalIncome = historyTotalIncome;
    }

    public ArrayList<String> getThisMonthEstimate() {
        return thisMonthEstimate;
    }

    public void setThisMonthEstimate(ArrayList<String> thisMonthEstimate) {
        this.thisMonthEstimate = thisMonthEstimate;
    }

    public ArrayList<String> getNextMonthEstimate() {
        return nextMonthEstimate;
    }

    public void setNextMonthEstimate(ArrayList<String> nextMonthEstimate) {
        this.nextMonthEstimate = nextMonthEstimate;
    }

    public String getCoin() {
        return coin;
    }

    public void setCoin(String coin) {
        this.coin = coin;
    }

    public String getTeamAccount() {
        return teamAccount;
    }

    public void setTeamAccount(String teamAccount) {
        this.teamAccount = teamAccount;
    }

    public String getSendMoreIncome() {
        return sendMoreIncome;
    }

    public void setSendMoreIncome(String sendMoreIncome) {
        this.sendMoreIncome = sendMoreIncome;
    }

    public ArrayList<String> getTaobaoPendingIncome() {
        return taobaoPendingIncome;
    }

    public void setTaobaoPendingIncome(ArrayList<String> taobaoPendingIncome) {
        this.taobaoPendingIncome = taobaoPendingIncome;
    }

    public ArrayList<String> getJdPendingIncome() {
        return jdPendingIncome;
    }

    public void setJdPendingIncome(ArrayList<String> jdPendingIncome) {
        this.jdPendingIncome = jdPendingIncome;
    }

    public String getCreditCardAccount() {
        return creditCardAccount;
    }

    public void setCreditCardAccount(String creditCardAccount) {
        this.creditCardAccount = creditCardAccount;
    }

    public String getBusinessCollege() {
        return businessCollege;
    }

    public void setBusinessCollege(String businessCollege) {
        this.businessCollege = businessCollege;
    }

    public String getAngelPlan() {
        return angelPlan;
    }

    public void setAngelPlan(String angelPlan) {
        this.angelPlan = angelPlan;
    }

    public String getSendMore() {
        return sendMore;
    }

    public void setSendMore(String sendMore) {
        this.sendMore = sendMore;
    }

    public String getYmFinance() {
        return ymFinance;
    }

    public void setYmFinance(String ymFinance) {
        this.ymFinance = ymFinance;
    }

    public String getYmLive() {
        return ymLive;
    }

    public void setYmLive(String ymLive) {
        this.ymLive = ymLive;
    }

    public String getOilCard() {
        return oilCard;
    }

    public void setOilCard(String oilCard) {
        this.oilCard = oilCard;
    }

    public String getStarStore() {
        return starStore;
    }

    public void setStarStore(String starStore) {
        this.starStore = starStore;
    }

    public static class UserInfoBean implements Parcelable {
        /**
         * nickname : Qq
         * headimgurl : http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIo5OJEQUTWcGXGtHDGhb10cgqBQ4hS88PU50tFG7zn3ryiafE9ib3Qs3GeTLdarFy7t9FLGmkevpsQ/132
         * invitation_code : 169149
         * isVip : 0
         */

        private String nickname;
        private String headimgurl;
        private String invcode;
        private int isVip;
        private int isAngel;
        private int region_agent;
        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getHeadimgurl() {
            return headimgurl;
        }

        public void setHeadimgurl(String headimgurl) {
            this.headimgurl = headimgurl;
        }

        public String getInvitation_code() {
            return invcode;
        }

        public void setInvitation_code(String invitation_code) {
            this.invcode = invitation_code;
        }

        public int getIsVip() {
            return isVip;
        }

        public void setIsVip(int isVip) {
            this.isVip = isVip;
        }

        public int getIsAngel() {
            return isAngel;
        }

        public void setIsAngel(int isAngel) {
            this.isAngel = isAngel;
        }

        public int getRegion_agent() {
            return region_agent;
        }

        public void setRegion_agent(int region_agent) {
            this.region_agent = region_agent;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.nickname);
            dest.writeString(this.headimgurl);
            dest.writeString(this.invcode);
            dest.writeInt(this.isVip);
            dest.writeInt(this.isAngel);
            dest.writeInt(this.region_agent);
        }

        public UserInfoBean() {
        }

        protected UserInfoBean(Parcel in) {
            this.nickname = in.readString();
            this.headimgurl = in.readString();
            this.invcode = in.readString();
            this.isVip = in.readInt();
            this.isAngel = in.readInt();
            this.region_agent = in.readInt();
        }

        public static final Creator<UserInfoBean> CREATOR = new Creator<UserInfoBean>() {
            @Override
            public UserInfoBean createFromParcel(Parcel source) {
                return new UserInfoBean(source);
            }

            @Override
            public UserInfoBean[] newArray(int size) {
                return new UserInfoBean[size];
            }
        };
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.account);
        dest.writeInt(this.inviteNum);
        dest.writeString(this.coin);
        dest.writeParcelable(this.userInfo, flags);
        dest.writeString(this.todayIncome);
        dest.writeString(this.vipAccount);
        dest.writeString(this.historyTotalIncome);
        dest.writeStringList(this.thisMonthEstimate);
        dest.writeStringList(this.nextMonthEstimate);
        dest.writeString(this.teamAccount);
        dest.writeString(this.sendMoreIncome);
        dest.writeString(this.deductionAccount);
        dest.writeStringList(this.taobaoPendingIncome);
        dest.writeStringList(this.jdPendingIncome);
        dest.writeString(this.creditCardAccount);
    }

    public MyUserCenterInfo() {
    }

    protected MyUserCenterInfo(Parcel in) {
        this.account = in.readString();
        this.inviteNum = in.readInt();
        this.coin = in.readString();
        this.userInfo = in.readParcelable(UserInfoBean.class.getClassLoader());
        this.todayIncome = in.readString();
        this.vipAccount = in.readString();
        this.historyTotalIncome = in.readString();
        this.thisMonthEstimate = in.createStringArrayList();
        this.nextMonthEstimate = in.createStringArrayList();
        this.teamAccount = in.readString();
        this.sendMoreIncome = in.readString();
        this.deductionAccount = in.readString();
        this.taobaoPendingIncome = in.createStringArrayList();
        this.jdPendingIncome = in.createStringArrayList();
        this.creditCardAccount = in.readString();
    }

    public static final Creator<MyUserCenterInfo> CREATOR = new Creator<MyUserCenterInfo>() {
        @Override
        public MyUserCenterInfo createFromParcel(Parcel source) {
            return new MyUserCenterInfo(source);
        }

        @Override
        public MyUserCenterInfo[] newArray(int size) {
            return new MyUserCenterInfo[size];
        }
    };
}
